import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-plugin-persistedstate'
import { App } from 'vue'

const store = createPinia().use(createPersistedState())

export function setupStores(app: App) {
    app.use(store)
}

export * from './modules/server'

export { store }
